﻿using Microsoft.Office.Interop.Excel;
using SUNRPA.CONTROLS.IMPL.domain.attrubutes;

namespace SUNRPA.CONTROLS.IMPL.domain.flowRunningVar {
    [ClassInfo("Excel工作簿")]
    public class ExcelModel:RPAVariable {
        private Workbook workBookValue;

        public Workbook WorkBookValue { 
            get { return workBookValue; }
            set { workBookValue = value; }
        }

        public ExcelModel(string name, Workbook workBookValue) { 
            VarName = name;
            WorkBookValue = workBookValue;
        }

        public override string ToString() { 
            return workBookValue.ToString();
        }
    }
}
